<!DOCTYPE html>
<html>
  <head>
    <title>test1.html</title>
	<meta charset="utf-8">
    <meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page">
    <meta name="content-type" content="text/html; charset=UTF-8">
    
    <script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="js/jquery.form.js"></script>
    <script type="text/javascript" src="js/jquery.base64.js"></script>
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->

  </head>
  
  <body>
  <form action="" method="post" id="_form" name="_form" enctype="multipart/form-data" >
        <input type="file" name="userFile" id="file" />     
        <input type="button" onclick="onsub()" value="上传" />
	</form>
    <input type="button" value="selectLendMessage" onclick="selectLendMessage()" />
    
    <input type="text"  name="email"/>
    <input type="button" value="sendEmail" onclick="sendEmail()" />
    <input type="button" value="verifyEmail" onclick="verifyEmail()" />
    
    <form action="http://localhost:8080/Library/library/cover/insertACover/admin/11-554-4556-64" method="post" enctype="multipart/form-data">
    	<input type="file" name="pic" />
    	<input type="submit" name="submit" />
    </form>
    
    <form action="http://localhost:8080/Library/library/cover/updateACover/admin/11-554-4556-64" method="post" enctype="multipart/form-data">
    	<input type="file" name="pic" />
    	<input type="submit" name="submit" />
    </form>
    
    <video id="video" controls="controls">
<source src="迅雷下载/海洋深处DVDScr中英字幕.mp4" />
</video>
<button id="capture">Captureasfadsfadsfasdfadsfadad</button>
<div id="output"></div>

<img alt="" src="
HBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIy
MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAA8AFgDASIA
AhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQA
AAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0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1Qu7S6kvkmWUOsasrKYzEBiGEfKgP7sc8tuAMfTvG
upapZQa1FBaQaf8AaLC1ls2RnlZrpLdt6y7gFC/al+UxnPlnkbvlk0ywvI/ilqN49pOtq/2rbMYy
EbMGmgYbpyY5AP8Acb0NakPgrTbV4Y7We7g0+N4JG09XUxSSQKixOzMpkyoii4DgHyxkHLbukoA8
/TxprCWOlXMqWL/27aRXNkqwuv2PzJraILId587H2tTkeXnyyON2VuT+KNas0kt3tLS5ntNYtdPu
rxAYotkrWxysZZm34udoG4j5GYkcIbkfgWwSBIXvb6SO2iWHTwzR/wCgIrxyKI8IN2GhhP73zP8A
VjOQW3XE8L232CS2nu7u4lmvYL6e6kKCSaWJ42QkKoQDEMa4VRwPUk0AV7/xLND4u0zRrS3jkgku
PJvLhifkZreaVY0xxvxEGbJGFdODvyuXplheR/FLUbx7SdbV/tW2YxkI2YNNAw3TkxyAf7jehrcv
/CGg6jrdnrM+mWn9oWtwLgXAgTfIyoyKHYrkhchhzwUQ9q3KACiiigD/2Q==">

<form action="http://localhost:8080/Library/library/cover/insertPic/admin/11-554-4523-64" method="post" enctype="multipart/form-data">

<input type="file" name="cover">

<input type="submit" name="submit">

</form>
  </body>
  
  <script type="text/javascript">
  	function onsub(){
  	
  		var path = "http://localhost:8080/Library/library/user/excelInsert/admin";
  		$('#_form').attr('action', path);
  		$('#_form').submit();
  	
  	}
  	
  	function selectLendMessage() {
  		var path = "http://localhost:8080/Library/library/bookLend/selectLendMessage/1/20";
  		$.ajax({
  			type : "GET",
  			url : path,
  			success : function(data, status) {
  				console.log(data);
  			}
  		});
  	}
  	function sendEmail() {
  		var path = "http://localhost:8080/Library/library/user/emailPassword/EM2";
  		$.ajax({
  			type : "POST",
  			url : path,
  			data : $('input[name="email"]').val(),
  			success : function(data, status) {
  				console.log(data);
  			}
  		});
  	}
  	function verifyEmail() {
  		var path = "http://localhost:8080/Library/library/user/emailVerify/EM2";
  		$.ajax({
  			type : "POST",
  			url : path,
  			data : $('input[name="email"]').val(),
  			success : function(data, status) {
  				console.log(data);
  			}
  		});
  	}
  	
  	
$(function() {
"use strict";
var video, $output;
var scale = 0.25;
var initialize = function() {
$output = $("#output");
video = $("#video").get(0);
$("#capture").click(captureImage);
};
var captureImage = function() {
var canvas = document.createElement("canvas");
canvas.width = video.videoWidth * scale;
canvas.height = video.videoHeight * scale;
canvas.getContext('2d')
.drawImage(video, 0, 0, canvas.width, canvas.height);
var img = document.createElement("img");
img.src = canvas.toDataURL();
$output.prepend(img);
};
$(initialize);
}());
  	</script>
</html>
